package com.yidu.best.systemManagement.Authority.service;

import java.util.List;

import com.yidu.best.systemManagement.Authority.domain.AuthorityResource;
import com.yidu.best.systemManagement.Authority.domain.AuthorityRole;
import com.yidu.best.systemManagement.Authority.domain.AuthorityRoleResource;
import com.yidu.best.systemManagement.Authority.domain.AuthorityUser;
import com.yidu.best.systemManagement.Authority.domain.AuthorityUserRole;

public interface AuthorityService {
	
	List<AuthorityUser> queryUser();
	
	List<AuthorityUser> queryUsers(String userName,String roleName,Integer useable);
	
	List<AuthorityUser> queryUserWithRole(String userId);
	
	List<AuthorityRole> selectRoleName();
	
	int setUserRole(AuthorityUserRole authorityUserRole);
	
	int updateRoleName(AuthorityUserRole authorityUserRole);
	
	List<AuthorityResource> queryRoleResource(AuthorityResource authorityResource);
	
	List<AuthorityRole> queryRoleWithResource();
	
	int updateUseable(AuthorityUser authorityUser);
	
	int addRoleByResource(AuthorityRoleResource authorityRoleResource);
	
	int deleteRoleByResource(String roleId);
	
	List<AuthorityResource> selectUserInRoleByResource(String userName);
}
